var countNodes = function(root) {
   if(root==null) return 1
   return (countNodes(root.left)+countNodes(root.right)-1)
};